package test1;

import java.util.ArrayList;
import java.util.function.Consumer;

public class test3 {
    public static void main(String[] args) {
        ArrayList<Integer> arr = new ArrayList<>();
        arr.add(1);
        arr.add(2);
        arr.add(3);
        arr.forEach(integer -> System.out.println(integer));
    }
}
